import router from "../../../apis/routers";

const key = getFilePathStore(import.meta.url);

export const useButtonGroupComponentStore = defineStore(key, {
    state: () => ({
        items: [
            { msg: '用户验证码登录', action: (() => { router.push({ name: 'userRegisterPhone' }); }) },
            { msg: '用户名密码登录', action: (() => { router.push({ name: 'userRegisterPassword' }); }) }
        ],
    }),
    actions: {
    },
    persist: {
        key: key,
        storage: sessionStorage,
    }
})